package com.zcl.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcl.dao.Sea;
import com.zcl.mapper.SeaMapper;

@Service
public class SeaService {
	@Autowired
	SeaMapper seaMapper;
	/*
	 * 查询事故
	 */
	public List<Map<String, String>> seaQuery(){
		return seaMapper.seaQuery();
	}
	
	/*
	 * 查询事故详情
	 */
	public Sea seaSuveryInfo(Map<String, String> map) {
		return seaMapper.seaSuveryInfo(map);
	}
	
	/*
	 * 事故全文搜索
	 */
	public List<Map<String, String>> seaGlobalQuery(Map<String, String> map) {
		return seaMapper.seaGlobalQuery(map);
	}
	
	/*
	 * 添加事故信息
	 */
	public void seaAdd(Map<String, String> map) {
		seaMapper.seaAdd(map);
	}
	
	/*
	 * 删除事故信息
	 */
	public void seaDelete(Map<String, String> map) {
		seaMapper.seaDelete(map);
	}

	/*
	 * 事故信息修改
	 */
	public void seaRevise(Map<String, String> map) {
		seaMapper.seaRevise(map);
	}

	/*
	 * 事故高级搜索
	 */
	public List<Map<String, String>> seaAdvancedQuery(Map<String, String> map) {
		return seaMapper.seaAdvancedQuery(map);
	}
}
